<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
    //开启严格模式
        'use strict'
        var num=1;
        console.log(num);
        (function fn(){
            console.log(this);
        })();
        function Star(name){
            this.name=name;
        }
        var zs=new Star("张三");
        console.log(zs);
        setTimeout(function() {
            console.log(this);
        }, 1000);
    </script>
</body>
</html>